Adwaita: colorbutton colorswatch shadow fix
authorLapo Calamandrei <calamandrei@gmail.com>
Sun, 17 Apr 2016 21:08:26 +0000 (23:08 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Sun, 17 Apr 2016 21:14:02 +0000 (23:14 +0200)
reset colorswatch box-shadow on active and checked state as well
following latest style changes.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained.css

index 15c3dabafbd3c0eed45724c1cafa400c92f7f540..0d1c286660df1bf273d9cd49c88068944befff5b 100644 (file)
@@ -963,12 +963,14 @@ button.color {
   colorswatch:only-child {
     &, overlay { border-radius: 0; }
 
-    @if $variant == 'light' {
-      box-shadow: 0 1px _text_shadow_color();
+    @if $variant == 'light' { box-shadow: 0 1px _text_shadow_color(); }
+  }
 
-      &:disabled,
-      &:backdrop { box-shadow: none; }
-    }
+  @if $variant == 'light' {
+    &:disabled,
+    &:backdrop,
+    &:active,
+    &:checked { colorswatch:only-child { box-shadow: none; }}
   }
 }
 
index ab7d041209d705374bd7bb184c6a4b82c783138c..8539fa1ba5244577e50d0c7d17315c2fa5cb89e5 100644 (file)
@@ -1368,8 +1368,8 @@ button.color {
     box-shadow: 0 1px rgba(255, 255, 255, 0.76923); }
     button.color colorswatch:only-child, button.color colorswatch:only-child overlay {
       border-radius: 0; }
-    button.color colorswatch:only-child:disabled, button.color colorswatch:only-child:backdrop {
-      box-shadow: none; }
+  button.color:disabled colorswatch:only-child, button.color:backdrop colorswatch:only-child, button.color:active colorswatch:only-child, button.color:checked colorswatch:only-child {
+    box-shadow: none; }
 
 /*********
  * Links *